<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link id='theme' rel='stylesheet' href='static/css/addcustomer.css'/>
<div class="customer_container">
<form id="cform" action="customer/add" method="post">
	<div class="subtitle">基本信息</div>
	<div class="info1">
		<ul>
			<li>企业名称：
			<input type="text" name="customname" id="custom_name" class="easyui-validatebox" required="required"/> <span style="color:red;">*</span></li>
			<li>企业类型：<input id="customtypename" type="hidden" name="customtypename" value=""/>
        	 	<select id="selectcustomtype" name="customtype" class="easyui-validatebox" required="required">
        	 		<option value="" selected="selected">--请选择--</option>
        	 		<c:if test="${not empty  customtypelist}">
        	 			<c:forEach items="${customtypelist}" var="customtype">
        	 				<option value="${customtype.configtypevalue}">${customtype.configtypename }</option>
        	 			</c:forEach>
        	 		</c:if>
	      		</select> <span style="color:red;">*</span></li>
			<li>企业主页：<input type="text" name="siteurl" /></li>
			<li>状态：<select name="customstatus">
	      			<option value="1" selected="selected">启用</option>
	      			<option value="0">停用</option>
	      		 </select> <span style="color:red;">*</span></li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="subtitle">门户信息</div>
	<div class="info2">
		<ul>
			<li>法人代表：<input type="text" name="bossname"/></li>
			<li>注册日期：<input id="regdatetime" name="regdatetime" type="text" class="easyui-datebox"></li>
			<li>证件类型：<input id="cardtypename" type="hidden" name="cardtypename" value=""/>
			<select id="selectcardtype" name="cardtype">
        	 		<option value="" selected="selected">--请选择--</option>
        	 		<c:if test="${not empty  cardTypeList}">
        	 			<c:forEach items="${cardTypeList}" var="cardtype">
        	 				<option value="${cardtype.configtypevalue}">${cardtype.configtypename }</option>
        	 			</c:forEach>
        	 		</c:if>
	      		</select></li>
			<li>证件号码：<input id="card_num" type="text" name="cardnum"/></li>
			<li>国家：<input type="text" name="country" value="中国" /></li>
			<li>省/地区：<select id="selectprovince" name="province">
        	 		<option value="" selected="selected">--请选择--</option>
        	 		<c:if test="${not empty provinceList}">
        	 			<c:forEach items="${provinceList}" var="province">
        	 				<option value="${province.provinceid}">${province.province}</option>
        	 			</c:forEach>
        	 		</c:if>
	      		</select>
			</li>
			<li>公司传真：<input type="text" name="companyfax"/></li>
			<li>城市：
			<select id="selectcity" name="city">
        	 		<option value="" selected="selected">--请选择--</option>
	      		</select>
			</li>
			<li>公司电话：<input type="text" name="companytel"/></li>
			<li>区：
			<select id="selectarea" name="area">
        	 		<option value="" selected="selected">--请选择--</option>
	      		</select>
			<li>公司地址：<input type="text" name="companyaddress"/></li>
		</ul>
		<div class="clear"></div>
		<div>
		备注：<textarea rows="2" cols="50" name="memo"></textarea>
		</div>
	</div>
	<div class="subtitle"> 
		<a href="javascript:void(0);" id="addcontact">添加一个联系人</a>
    </div>
	<div class="info3">
		<table>
            <thead>
            <tr>
	     	<th>姓名</th>
	     	<th>电话</th>
	     	<th>传真</th>
	     	<th>邮箱</th>
	     	<th>职务</th>
	     	<th>操作</th>
  			</tr>                                                                          
            </thead>
            <tbody id="addtr">
            </tbody>
          </table>    
	</div>
</form>
</div>
<script type="text/javascript" src="static/js/addcustomer.js" charset="UTF-8"></script> 